package com.cn.jiyun.service.impl;

import com.cn.jiyun.YouClient;
import com.cn.jiyun.entity.pojo.Strategy;
import com.cn.jiyun.service.FoodService;
import com.cn.jiyun.service.YouService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YouServiceImpl implements YouService {
    @Autowired
    private YouClient youClient;

    @Override
    public List<Strategy> findAll() {
        return youClient.findAll().getData();
    }

    @Override
    public Strategy findid(Integer strategyId) {
        return youClient.findid(strategyId).getData();
    }
}
